﻿using UnityEngine;

namespace Assets.Scripts.Interface
{
    class CreditsInterface : InterfaceBase
    {
        private GameObject MainMenu;

        void Awake()
        {
            MainMenu = this.gameObject.transform.parent.FindChild("MainMenu").gameObject;
        }

        protected override void Execute()
        {
            MainMenu.SetActive(true);
            this.gameObject.SetActive(false);
        }

        public void OnBackClick()
        {
            ButtonClick();
        }
    }
}
